<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="test">
    <p :name="obj.name" :title="obj.title">分多次绑定多个属性</p>
    <p v-bind="obj"> 22</p>
  </div>

  <script src="../js/vue.js"></script>
  <script>
    const vm = new Vue({
      el: "#test",
      data: {
        obj:{
            name:'abc',
            title:'qwe'
        }
      }
    })

    setTimeout(()=>{
        vm.obj={
            age:12,
            ...vm.obj
            
        }
    },2000)
  </script>
</body>
</html>